package org.dxy.infrastructure.persistent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dxy.infrastructure.entity.query.WorkshopViewEntity;

import java.util.List;

/**
 * 车间视图服务接口
 */
public interface WorkshopViewService extends IService<WorkshopViewEntity> {

    long countByFactoryId(Long factoryId);

    boolean existsByWorkshopCode(String workshopCode);

    List<WorkshopViewEntity> getByFactoryId(Long factoryId);
}